<template>
	<view>
		<view class="header-title">
			问卷大厅问卷标题
			<view class="title-right flex">
				<image :src="imgurl+'collect.png'"></image>
				<text>收藏</text>
			</view>
		</view>
		<view class="beizhu">问卷备注部分在此显示问卷备注部分在此显示问卷备注部分在此显示问卷备注部分在此显示。</view>
	    <view class="main">
	    	<view class="main-item" v-for="(item,index) in list" :key="index">
	    		<view class="item-title">
	    			<span>*</span>
	    			<text>{{index+1}}.{{item.title}}[{{item.type}}]</text>
	    		</view>
	    		<view class="item-content flex" v-for="(items,index) in item.content" :key="index">
	    			<radio style="transform: scale(0.7);"></radio>
					<text>{{items.title}}</text>
	    		</view>
	    	</view>
	    </view>
		<view class="bts">提交</view>
		<view class="jubao" @tap="Tip">举报</view>
	</view>
</template>

<script>
	import app from "../../../App.vue"
	export default {
		data() {
			return {
				imgurl: '',
				list: [{
					title: '问卷问题问题',
					type: '单选题',
					content: [{
						title: '选项1'
					}, {
						title: '选项2'
					}]
				},{
					title: '问卷问题问题',
					type: '单选题',
					content: [{
						title: '选项1'
					}, {
						title: '选项2'
					}, {
						title: '选项3'
					}]
				}]
			};
		},
		methods:{
			Tip(){
				uni.navigateTo({
					url:'../../tip/agreeTip/agreeTip'
				})
			}
		},
		onLoad() {
			this.imgurl = app.globalData.imgurls
		}
	}
</script>

<style lang="scss">
	page {
		background: #F0F0F0;
		font-weight: 500;
	}
    span{
		color:#ff0000;
	}
	.header-title {
		color: #209FFC;
		text-align: center;
		position: relative;
		height: 100rpx;
		line-height: 100rpx;

		.title-right {
			position: absolute;
			height: 100rpx;
			line-height: 100rpx;
			top: 0;
			right: 20rpx;

			image {
				height: 50rpx;
				width: 50rpx;
			}

			text {
				font-size: 24rpx;
				color: #999;
			}
		}
	}

	.beizhu {
		width: 690rpx;
		padding: 20rpx 0;
		margin: 0 auto;
		color: #666;
		font-size: 24rpx;
	}
	.main-item{
		width:690rpx;
		margin:0 auto;
		.item-title{
			padding:15rpx 0;
		}
		.item-content{
			background:#fff;
			border-radius:10rpx;
			height:65rpx;
			line-height:65rpx;
		}
	}
	.bts{
		width:690rpx;
		height:100rpx;
		background:#209FFC;
		border-radius:50rpx;
		line-height:100rpx;
		text-align: center;
		color:#fff;
		font-size:36rpx;
		margin:50rpx auto;
	}
	.jubao{
		color:#999;
		font-size:30rpx;
		text-align: right;
		width:690rpx;
		margin:0rpx auto;
	}
</style>
